package com.lcz.cloud_note.dao;

import com.lcz.cloud_note.entity.Like;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LikeDao
{
    int insert(Like like);

    int dynamicUpdate(Like like);

    Like findByNoteId(String noteId);

    Like findById(String likeId);

    Like findByUserIdAndNoteId(@Param("userId") String userId,@Param("noteId") String noteId);

    List<Like> listByUserId(String userId);

    int deleteById(String likeId);
}
